package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Add_N_Number {

	public static void main(String[] args) {
	
		
	System.out.println("enter the number which u want to add");
	
	Scanner sc=new Scanner(System.in);
	int n=sc.nextInt();
	int sum=0;
	
	
	while((n=sc.nextInt())!=0)
	{
		
		sum=sum+n;
		
	}
		System.out.println("The sum of entered number"+sum);

	}

}
